#include "convert-route.h"

#include "util/fs.h"

namespace book
{

ConvertRoute::ConvertRoute(const fs::path &src, const fs::path &dest)
    : src_(fs::absolute(src).lexically_normal())
    , dest_(fs::absolute(dest).lexically_normal()) {
}

ConvertRoute::ConvertRoute(const ConvertRoute &base, const std::string &fileName, const std::string &uriName)
    : src_(base.src(fileName))
    , dest_(base.dest(uriName)) {
}

} // namespace book
